<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<jsp:directive.page import="com.anhry.app.safety.util.Util"/>
<%@ include file="/WEB-INF/pages/share/taglib.jsp"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>企业添加</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link href="<%=basePath+Util.SKIN%>/css/right.css" type="text/css" rel="stylesheet">
	<script type="text/javascript" src="<%=basePath%>/js/jquery-1.7.2.js"></script>
	<script type="text/javascript" src="<%=basePath%>/js/check_jquery.js"></script>
	<script type="text/javascript" src="<%=path%>/js/selected.js"></script>
	<script type="text/javascript">
	   	function forwardTo(method){
	   		if(method==1){
	   			document.form1.action="<%=basePath %>/enterprise/corp_update.action";
	   		}else if(method==2){
	   			document.form1.action="<%=basePath%>/enterprise/pic_list.action";
	   		}else{
	   			document.form1.action="<%=basePath%>/enterprise/per_list.action";
	   		}
			document.form1.submit();
		}
	</script>
  </head>
  
  <body>
	<div  class="body-box">
		<div class="map">
			<div class="map_con">
				您当前的位置：企业分类管理 &gt; 企业信息管理 &gt; 企业人员管理 &gt; 编辑人员
			</div>
			
		</div>
		<div id="container">
		<div class="tab_div">
			<div class="tab"><a href="javascript:forwardTo(1);">企业信息修改</a></div>
			<div class="tab"><a href="javascript:forwardTo(2);">企业图片管理</a></div>
			<div class="tab_on"><a href="javascript:forwardTo(3);">企业人员管理</a></div>
		</div>
		<div class="tab_con">
			<form action="<%=basePath%>/enterprise/per_save.action" method="post" name="updateform">
		    	<table border="0" cellspacing="0" cellpadding="0"  width="100%" class="info_table">
					<tr>
						<td colspan="2" class="title_li">人员编辑</td>
					</tr>
					<tr>
						<td width="15%" class="title_td">姓名：</td>
						<td><input name="perName" type="text" class="info_input" value="${per.perName}" id="bit1"><span class="note4">*</span></td>
					</tr>
					<tr>
						<td width="15%" class="title_td">性别：</td>
						<td><s:radio list="#{1:'男',0:'女'}" name="perSex" value="%{per==null?1:per.perSex}" theme="simple"></s:radio> </td>
					</tr>
					<tr>
						<td width="15%" class="title_td">电话：</td>
						<td><input name="perPhone" type="text" class="info_input" value="${per.perPhone}" id="btel24"><span class="note4">*</span></td>
					</tr>
					<tr>
						<td width="15%" class="title_td">手机：</td>
						<td><input name="perMobile" type="text" class="info_input" value="${per.perMobile}" id="btel243"><span class="note4">*</span></td>
					</tr>
					<tr>
						<td width="15%" class="title_td">邮箱：</td>
						<td><input name="perEmail" type="text" class="info_input" value="${per.perEmail}" id="email"><span class="note4"></span></td>
					</tr>
					<tr>
					    <td width="15%" class="title_td">学历：</td>
					    <td><s:select list="#{'1':'小学','2':'初中','3':'高中','4':'本科','5':'研究生','6':'博士'}" name="perDegree" headerKey="" headerValue="请选择" value="per.perDegree" theme="simple" cssStyle="width:155px;margin-left:5px;"></s:select></td>
					</tr>
					<tr>
					    <td width="15%" class="title_td">培训情况：</td>
					    <td><input type="text" name="perTraining" class="info_input" value="${per.perTraining}"/></td>
					</tr>
					<tr>
					    <td width="15%" class="title_td">工作年限：</td>
					    <td><input type="text" name="perWorkingYear" class="info_input" value="${per.perWorkingYear}"/>（年）</td>
					</tr>
					<tr>
						<td class="title_td">人员类型：</td>
						<td><s:select list="#{1:'法人',2:'主要负责人',3:'安全负责人',4:'安全管理人员'}" name="perType" value="%{per==null?4:per.perType}" disabled="true" theme="simple" cssStyle="width:155px;margin-left:5px;"></s:select></td>
					</tr>
					<tr>
						<td align="center" colspan="4">
							<center>
							<input type="submit" name="btntj" class="link_input" id="btnSubmit1" value="提 交">
							<input type="button" name="btn1" class="link_input" id="btnset1" value="返 回" onclick="forwardTo(3);">
							</center>
						</td>
					</tr>
				</table>
				<input type="hidden" name="corpId" value="${corpId }">
				<input type="hidden" name="objId" value="${objId }">
				<input type="hidden" name="num" value="${num }">
				<input type="hidden" name="size" value="${size }">
				<input type="hidden" name="urls" value="${urls }">
			</form>
		</div>
		</div>
	</div>
	<form action="<%=basePath %>/enterprise/corp_update.action" name="form1" method="post">
		<input type="hidden" name="corpId" value="${corpId}">
		<input type="hidden" name="num" value="${num }">
		<input type="hidden" name="size" value="${size }">
		<input type="hidden" name="urls" value="${urls }">
	</form>
  </body>
  <s:if test="%{tip!=null}">
    	<script>
    		alert('${tip}');
    	</script>
    </s:if>
</html>
